function WiSiL_plotBER(filename)
% WISIL_PLOTBER Plot BER graph from WiSiL results.
%
%   WiSiL_plotBER( FILENAME ) gets the results pre-saved in file FILENAME
%   and uses them to plot: [ BER ] X [ E_b/N_o (dB) ].
%   
%   WiSiL_plotBER() gets the results from file 'results.mat'.

% 
% Wilson Diniz Wellisch, 29/10/2010
%   created
% Andre Noll Barreto, 03/04/2011
%   included file name option


if ~exist('filename', 'var')
    filename = 'results';
end
load (filename);

%figure;
semilogy(param.simulation.EbN0,ber,'o-');
xlabel('E_b/N_o (dB)');
ylabel('BER');
grid on;
